package com.meng.service;

import com.meng.pojo.Books;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public interface BookService {
    //增加Book
    int addBook(Books books);

    //根据id删除Book
    int deleteBookById( int id);

    //更新一个Book
    int updateBook(Books books);

    //根据id查询返回一个Book
    Books queryBookById(Integer id);

    //查询所有Book返回到list集合中
    List<Books> queryAllBook();

    Books queryBookByName(String bookName);
}